package com.example.qianfeng.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Component;

/**
 * 获取配置文件中的属性值
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "s3.oss")
public class TestConfig {

    @NonNull
    private String host;

    @NonNull
    private String ak;

    @NonNull
    private String sk;

    @NonNull
    private String bucketName;
}
